﻿@using CloudStorageLight.Web.Models
@{
    ViewBag.Title = CloudStorageLight.Core.Web.ViewMessages.MsgRegisterClientToken;
    Layout = "~/Views/Shared/_LayoutAccount.cshtml";
}
<h2>@ViewBag.Title.</h2>
@section scripts
{
    <script type="text/javascript">
        @Html.Partial("_Message")

        $(function () {
            CloudStorageLight.StorageController.blockUI(null);

            if (typeof Storage !== "undefined") {
                localStorage.setItem("clientToken", "@(ViewBag.ClientToken)");
            }

            window.location.href = "@(ViewBag.ReturnUrl)";
        });
</script>

}
